<?php


namespace app\admin\controller;


class Log extends Base
{
    //通知记录
    public function email()
    {
        $page = input('page', 1);
        $param = input();
        if($this->admin['role_id']==1){
            if(empty($param['admin_id']))$param['admin_id']=$this->admin['id'];
        }else{
            $param['admin_id']=$this->admin['id'];
        }
        $data = model('LogEmail')->list_data($param, $page, 10);
        $this->assign('data', $data);
        return $this->fetch();
    }
}